package com.android.views.recyclerviewx;

import android.content.Context;

import com.android.views.R;
import com.yds.views.adapterx.YDSRecyclerViewXAdapter;
import com.android.views.databinding.AdapterMvvmItemBinding;

public class MyRecyclerViewXAdapterAdatper extends YDSRecyclerViewXAdapter<String, AdapterMvvmItemBinding> {

    public MyRecyclerViewXAdapterAdatper(Context context) {
        super(context);
    }

    @Override
    public int onCreateViewLayoutID(int layoutId) {
        return R.layout.adapter_mvvm_item;
    }

    @Override
    public void onBindViewHolderX(AdapterMvvmItemBinding itemBinding, int position) {
        itemBinding.tvNum.setText(mList.get(position));
    }


//    @Override
//    public void onBindViewHolderX(YDSViewHolderX holder, int position) {
//        AdapterMvvmItemBinding itemBinding = (AdapterMvvmItemBinding) holder.itemBinding;
////        itemBinding.tvNum.setText(mList.get(position));
//        holder.itemBinding.setVariable(R.id.tvNum,mList.get(position));
//    }

}
